package com.leyou;

import com.leyou.config.RsaKeyProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@SpringBootApplication
@MapperScan("com.leyou.mapper") //扫描mapper包
@EnableConfigurationProperties(RsaKeyProperties.class)  //项目一启动就将 解析自定义密钥属性的配置类 放入到IOC容器中
public class AuthServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthServerApplication.class, args);
    }
}
